home *** CD-ROM | disk | FTP | other *** search
Java Source | 2000-04-03 | 2.1 KB | 78 lines |
- /*
- * HttpSessionContext.java -- Context key,value pairs for HttpSession
- *
- * Copyright (c) 1998, 1999 by Free Software Foundation, Inc.
- * Written by Paul Siegmann (pauls@euronet.nl)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library General Public License as published
- * by the Free Software Foundation, version 2. (see COPYING.LIB)
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
- */
-
- package javax.servlet.http;
-
- import java.util.Enumeration;
-
- /**
- * Contains information shared by all the HttpSessions.
- *
- * @see javax.servlet.http.HttpSessionContext
- #ifdef SERVLET_2_0
- #else
- * @deprecated
- * This class has been deprecated for security reasons.<BR>
- * We don't want serlvets messing around in other sessions.<BR>
- * However convenient that might be.<BR>
- #endif
- #ifdef SERVLET_2_0
- * @version Servlet API 2.0
- #endif
- #ifdef SERVLET_2_1
- * @version Servlet API 2.1
- #endif
- #ifdef SERVLET_2_2
- * @version Servlet API 2.2
- #endif
- * @since Servlet API 2.0
- * @author Paul Siegmann (pauls@euronet.nl)
- */
- public interface HttpSessionContext
- {
- /**
- * Get the session with the given id.
- #ifdef SERVLET_2_0
- #else
- * @deprecated This method should always return null
- #endif
- *
- * @since Servlet API 2.0
- *
- * @param id the id of the HttpSession we're looking for.
- * @return The HttpSession we're looking for, null if not present.
- */
- HttpSession getSession(String id);
-
-
- /**
- * Get all sessions ids.
- #ifdef SERVLET_2_0
- #else
- * @deprecated This method should always return an empty enumeration
- #endif
- *
- * @since Servlet API 2.0
- *
- * @return an Enumeration containing all session id's.
- */
- Enumeration getIds();
- }
-